package org.emcode.sample.appleguice.client.mvp;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHTML;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class GreetingResponseView extends Composite implements GreetingResponsePresenter.Display {

	VerticalPanel vPanel = new VerticalPanel();
	private final HTML serverResponseLabel;
	private Label textToServerLabel;
	private final HTML visitorCount;
	
	public GreetingResponseView()
	{
		final VerticalPanel vPanel = new VerticalPanel();
		vPanel.setStyleName("centered-panel");
		
		textToServerLabel = new Label();
		serverResponseLabel = new HTML();
		serverResponseLabel.setStyleName("centered-panel");

		visitorCount = new HTML();
		visitorCount.setStyleName("centered-panel");

		vPanel.addStyleName("dialogVPanel");
		vPanel.add(serverResponseLabel);
		vPanel.add(visitorCount);
		
		initWidget(vPanel);
		
		

	}

	public DialogBox getDialogBox() {
		// TODO Auto-generated method stub
		return null;
	}

	public HasHTML getServerResponse() {
		return serverResponseLabel;
	}

	public HasText getTextToServer() {
		return textToServerLabel;
	}
	
	public HasHTML getVisitorCount() {
		return visitorCount;
	}
	
	public Widget asWidget() {
		return this;
	}

	public void startProcessing() {
		// TODO Auto-generated method stub
		
	}

	public void stopProcessing() {
		// TODO Auto-generated method stub
		
	}



}
